package com.example.demo.service.shop;

import com.example.demo.entity.Product;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Copyright (C), 2019-2019, XXX有限公司
 * FileName: ProductService
 * Author:   longzhonghua
 * Date:     2019/4/12 19:55
 *
 * @Description: $description$
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
public interface ProductService {
    public List<Product> getProductList();
    void addSeckill(Long productId, int stock, int price, Long startTime, Long endTime);

    Product findByid(Long productId);

    int updateStock(Long product_id, Integer count);

    Page<Product> list(Integer page, Integer size);
}
